package com.example.rentsystem.service;

import com.example.rentsystem.entity.User;

import javax.servlet.http.HttpSession;

import java.util.List;

public interface UserService {

    int addUser(User user);

    int deleteUser(int id);

    List<User> getUsers();

    List<User> findUsersByName(String name);

    User getUserById(int id);

    boolean userNameExist(String username);

    boolean accountExist(String account);

    User getUser(String account, String password);

    boolean auth(String account, String password, HttpSession session);

    boolean signup(User user);

    boolean editUser(User user);
}
